import * as Cesium from 'cesium'
import * as CesiumSensorVolumes from '@/utils/sensor/cesium-sensors-es6.esm';

function addCustomSensor() {
  const customSensor = new CesiumSensorVolumes.CustomSensorVolume();
  const directions = [];
  for (let i = 0; i < 8; ++i) {
    const clock = Cesium.Math.toRadians(45.0 * i);
    const cone = Cesium.Math.toRadians(1.0);
    directions.push(new Cesium.Spherical(clock, cone));
  }

  // customSensor.modelMatrix = getModelMatrix();
  customSensor.radius = 40000000.0;
  customSensor.directions = directions;
  // viewer.scene.primitives.add(customSensor);
}
class SensorPrimitiveManage{
  constructor() {
    this.sensorCollection = new Cesium.PrimitiveCollection();
    this._collection = new Cesium.AssociativeArray();
  }

  add(sensorParams){
    const {id} = sensorParams;

    const renderId = Cesium.defined(id) ? id :Cesium.createGuid();


  }
}

export default SensorPrimitiveManage;